package ochart.renders.vector.elements.axes
{
	import flash.display.Sprite;
	
	import ochart.renders.vector.VectorRenderer;
	
	public class AxisBaseRenderer extends VectorRenderer
	{
		public function AxisBaseRenderer()
		{
			super();
		}
		
		override public function render():Boolean
		{
			if(!super.render())
			{
				return false;
			}
			
			if(!isNaN(target.color))
			{
				target.graphics.beginFill(target.color);
				target.graphics.drawRect(0, 0, target.width, target.height);
				target.graphics.endFill();
			}
			
			return true;
		}
	}
}